/**
 * Copyright 2018 人人开源 http://www.renren.io
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package com.jy.framework.sys.controller;

import org.apache.shiro.SecurityUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.jy.framework.sys.entity.SysUserEntity;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.view.freemarker.FreeMarkerView;

/**
 * 系统页面视图
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2016年11月24日 下午11:05:27
 */
@Controller
public class SysPageController {
    /**
     * @Author: JuiceYan
     * @Description: Freemarker 视图渲染
     * @param: [webjars, module, url]
     * @return: java.lang.String
     * @throws:
     * @Date: 22:34 2019/1/3
     */
    @RequestMapping("modules/{module}/{url}.html")
    public String module(@PathVariable("module") String module, @PathVariable("url") String url) {
        return "modules/" + module + "/" + url;
    }

    @RequestMapping("login.html")
    public String login(){
        return "login";
    }

    @RequestMapping(value = {"/", "/index.html"})
    public String index() {
        return "index";
    }
//
//    @RequestMapping("index1.html")
//    public String index1() {
//        return "index1";
//    }
//
//    @RequestMapping("index2.html")
//    public String index2() {
//        return "index2";
//    }
//
//
    @RequestMapping("ads.html")
    public String main() {
        return "ads";
    }
//
//    @RequestMapping("error/404.html")
//    public String notFound() {
//        return "error/404.html";
//    }

}
